<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
</head>
<body>

<form th:action="@{/user/register}" method="post">
    姓名：<input type="text" name="name"/><br/>
    密码：<input type="password" name="password"><br>
    确认密码：<input type="password" name="password1"><br>
    角色：<select name="roleId">
    <option value="1">管理员</option>
    <option value="2">普通用户</option>
</select><br>
    <input type="submit" value="确定"/><br/>
</form>
如果已有账号，请<a th:href="@{/user/tologin}">登录</a>

</body>
</html>